package com.firefly.app.biz.download;

import java.util.concurrent.LinkedBlockingQueue;

public class TestMethod {

	public TestMethod() { // /xx/weblogic60b2_win.exe
		try {
			String fileName ="11_1387965415250.mp4";
//			SiteInfoBean bean = new SiteInfoBean("http://192.168.5.234/couponproxy/pictures/ads/"+fileName, "E:\\temp",
//					fileName, 2);
			SiteInfoBean bean = new SiteInfoBean(
					"http://192.168.5.234/couponproxy/getImageById.ads?imgName=11_1387965415250.mp4&encryptCode=ca220e23630ca8aae40d36142c1772a5&path=ads",
					"E:\\temp",
			fileName, 2);
			
			SiteFileFetch fileFetch = new SiteFileFetch(bean,new LinkedBlockingQueue<String>());
			fileFetch.start();
		} catch (Exception e) {
			e.printStackTrace();
		}
	}

	public static void main(String[] args) {
		new TestMethod();
	}
}
